package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.picture;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.noticeannouncement.NoticeannouncementService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PictureService extends BaseService {
    private static final Logger logger = LoggerFactory.getLogger(NoticeannouncementService.class);

    public RespEntity delete(JSONObject jsonParam) {
        return restJava(jsonParam, "businessJava", "delete", "picture");
    }

    public RespEntity pictureList(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonParam, "businessJava", "pictureList", "picture");
    }
}
